#include <iostream>
#include <vector>
#include <bits/ostream.tcc>
//
// Created by Asus on 2025/5/14.
//
using namespace std;

int main(int argc, char *argv[]) {
    vector<int> my_vector;

    my_vector.push_back(3);
    my_vector.push_back(7);
    my_vector.push_back(11);
    my_vector.push_back(5);

    for (int ele: my_vector) {
        cout << ele << endl;
    }

    cout << my_vector[0] << endl;

    my_vector.erase(my_vector.begin() + 2);

    for (int ele: my_vector) {
        cout << ele << endl;
    }
    // 清空向量并输出
    my_vector.clear();
    std::cout << "Size of the vector after clearing: " << my_vector.size() << std::endl;

    return 0;
}
